package com.example.springalibabacloudfeignauth.feign;

import com.alibaba.fastjson.JSONObject;
import com.example.springalibabacloudfeignauth.feign.impl.TestFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Classname ProviderFeign
 * @Description TODO
 * @Date 2022/5/14 21:24
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@FeignClient(value = "cloud-provider",fallback = TestFeignImpl.class)
public interface ProviderFeign {

    @GetMapping("/pro/api")
    JSONObject proApi();


    @PostMapping("/pro/v3")
    JSONObject proV3();
}
